package com.atguigu.gmall.product.service;

import com.atguigu.gmall.model.product.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface ManageService {
    List<BaseCategory1> getCategory1();

    List<BaseCategory2> getCategory2(String categroy1Id);

    List<BaseCategory3> getCategory3(String category2Id);

    List<BaseAttrInfo> attrInfoList(String category1Id, String category2Id, String category3Id);

    void saveAttrInfo(BaseAttrInfo baseAttrInfo);

    BaseAttrInfo getAttrInfo(Long attrId);

    List<BaseSaleAttr> getBaseSaleAttrList();


    List<SpuImage> getSpuImageList(Long spuId);

    void saveSkuInfo(SkuInfo skuInfo);

    List<SpuSaleAttr> getSpuSaleAttrList(Long spuId);

    Page<SkuInfo> getPage(Page<SkuInfo> skuInfoPage);

    void onSale(Long skuId);

    void cancelSale(Long skuId);
}
